package com.hx.mapper;

import com.hx.pojo.Account;

import java.util.List;

public interface AccountMapper {
    List<Account> findAll();
    int save(Account account);

    /**
     * 查询账户是否存在
     * @param accountNum
     * @return
     */
    Account findByAccountNum(String accountNum);

    /**
     * 更新账户余额
     * @param account
     * @return
     */
    int updateAccountBalance(Account account);
}
